Add tools.list SDK support and bump CLI to 0.0.407#450
Closed
ryanfolsom wants to merge 1 commit intogithub:mainfrom
Closed
Add tools.list SDK support and bump CLI to 0.0.407#450ryanfolsom wants to merge 1 commit intogithub:mainfrom
ryanfolsom wants to merge 1 commit intogithub:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for the new tools.list RPC method across all four SDK languages (TypeScript/Node.js, Python, Go, and .NET). The implementation exposes built-in CLI tools with their metadata, including tool names, descriptions, parameters schemas, and usage instructions. The PR also bumps the @github/copilot dependency from version 0.0.405 to 0.0.407, which includes the underlying tools.list RPC handler.
Changes:
- Added
ToolInfotype definitions across all SDKs with consistent JSON field naming (name, namespacedName, description, parameters, instructions) - Implemented
listTools()/list_tools()/ListTools()/ListToolsAsync()client methods with optional model parameter for model-specific tool overrides - Added E2E tests for each language SDK to verify tools can be listed and contain expected metadata
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| nodejs/package.json | Bumps @github/copilot dependency to 0.0.407 |
| nodejs/package-lock.json | Updates lockfile with 0.0.407 versions for all platform-specific packages |
| nodejs/src/types.ts | Adds ToolInfo interface with tool metadata fields |
| nodejs/src/index.ts | Exports ToolInfo type |
| nodejs/src/client.ts | Implements listTools() method with optional model parameter |
| nodejs/test/e2e/client.test.ts | Adds E2E test for listTools functionality |
| python/copilot/types.py | Adds ToolInfo dataclass with from_dict/to_dict serialization |
| python/copilot/init.py | Exports ToolInfo type |
| python/copilot/client.py | Implements list_tools() method with optional model parameter |
| python/e2e/test_client.py | Adds E2E test for list_tools functionality |
| go/types.go | Adds ToolInfo struct and request/response types for tools.list RPC |
| go/client.go | Implements ListTools() method with model parameter |
| go/internal/e2e/client_test.go | Adds E2E test for ListTools functionality |
| dotnet/src/Types.cs | Adds ToolInfoItem class and GetToolsResponse with JSON serialization attributes |
| dotnet/src/Client.cs | Implements ListToolsAsync() method with optional model parameter |
| dotnet/test/ClientTests.cs | Adds E2E test for ListToolsAsync functionality |
Files not reviewed (1)
- nodejs/package-lock.json: Language not supported
Add listTools() / list_tools() / ListTools() / ListToolsAsync() methods across all four SDK languages (TypeScript, Python, Go, .NET) to expose the new tools.list RPC from the CLI runtime. Includes ToolInfo types, client methods, exports, and E2E tests for each language. Bumps @github/copilot from ^0.0.405 to ^0.0.407 which includes the tools.list RPC handler.
39f0cf4 to
ce43192
Compare
Author
|
Closing in favor of the automated code generation to come. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add listTools() / list_tools() / ListTools() / ListToolsAsync() methods across all four SDK languages (TypeScript, Python, Go, .NET) to expose the new tools.list RPC from the CLI runtime.
Includes ToolInfo types, client methods, exports, and E2E tests for each language. Bumps @github/copilot from ^0.0.405 to ^0.0.407 which includes the tools.list RPC handler.